<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\admin\model\Menu as Model;
use app\BaseController;

class Menu extends BaseController
{
    protected $model;
    protected function initialize()
    {
        parent::initialize();
        $this->model = new Model();
    }

    public function index()
    {
        $params = $this->request->param();
        $data = $this->model->getList($params, true);
        return $this->success('获取成功', $data);
    }

}
